package com.tony.easymvc.po;

import com.alibaba.fastjson.JSONObject;

public class HtmlOperation {
	
	private String selectionLibrary;
	private String selectionTable;
	private String associationField;
	private String associationName;
	
	private String isRelated;
	private String useType;
	private String fieldDes;
	
	public String getSelectionLibrary() {
		return selectionLibrary;
	}

	public void setSelectionLibrary(String selectionLibrary) {
		this.selectionLibrary = selectionLibrary;
	}

	public String getSelectionTable() {
		return selectionTable;
	}

	public void setSelectionTable(String selectionTable) {
		this.selectionTable = selectionTable;
	}

	public String getAssociationField() {
		return associationField;
	}

	public void setAssociationField(String associationField) {
		this.associationField = associationField;
	}

	public String getAssociationName() {
		return associationName;
	}

	public void setAssociationName(String associationName) {
		this.associationName = associationName;
	}

	public String getFieldDes() {
		return fieldDes;
	}

	public void setFieldDes(String fieldDes) {
		this.fieldDes = fieldDes;
	}

	public String getUseType() {
		return useType;
	}

	public void setUseType(String useType) {
		this.useType = useType;
	}

	public String getIsRelated() {
		return isRelated;
	}

	public void setIsRelated(String isRelated) {
		this.isRelated = isRelated;
	}

	/**
     * 
     */
    private Integer id;

    /**
     * 
     */
    private Integer bizId;

    /**
     * 
     */
    private String  tableName;

    /**
     * 
     */
    private String  columnName;

    /**
     * 
     */
    private String  fieldName;

    /**
     * 
     */
    private String  titleName;

    /**
     * 
     */
    private String  isPrimary;
    
    /**
     * 
     */
    private String  isSearch;
    
    /**
     * 
     */
    private String  isUpdate;

    /**
     * 
     */
    private String  searchType;

    /**
     * 
     */
    private String  selectOperation;

    /**
     * 
     */
    private String  fieldType;

    /**
     * 
     */
    private Integer displayOrder;

    /**
     * 
     */
    private Integer fieldWidth;
    
    /**
     * 
     */
    private String rules;
    
    /**
     * 
     */
    private String messages;
    

    /**
     * 
     */
    private String  optContent;

    /**
     * 
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }
    
	/**
     * 
     * @return rules
     */
	public String getRules() {
		return rules;
	}

	 /**
     * 
     * @param rules
     */
	public void setRules(String rules) {
		this.rules = rules;
	}

	/**
     * 
     * @return messages
     */
	public String getMessages() {
		return messages;
	}

	 /**
     * 
     * @param messages
     */
	public void setMessages(String messages) {
		this.messages = messages;
	}

	/**
     * 
     * @return biz_id
     */
    public Integer getBizId() {
        return bizId;
    }

    /**
     * 
     * @param bizId
     */
    public void setBizId(Integer bizId) {
        this.bizId = bizId;
    }

    /**
     * 
     * @return table_name
     */
    public String getTableName() {
        return tableName;
    }

    /**
     * 
     * @param tableName
     */
    public void setTableName(String tableName) {
        this.tableName = tableName == null ? null : tableName.trim();
    }

    /**
     * 
     * @return column_name
     */
    public String getColumnName() {
        return columnName;
    }

    /**
     * 
     * @param columnName
     */
    public void setColumnName(String columnName) {
        this.columnName = columnName == null ? null : columnName.trim();
    }

    /**
     * 
     * @return field_name
     */
    public String getFieldName() {
        return fieldName;
    }

    /**
     * 
     * @param fieldName
     */
    public void setFieldName(String fieldName) {
        this.fieldName = fieldName == null ? null : fieldName.trim();
    }

    /**
     * 
     * @return title_name
     */
    public String getTitleName() {
        return titleName;
    }

    /**
     * 
     * @param titleName
     */
    public void setTitleName(String titleName) {
        this.titleName = titleName == null ? null : titleName.trim();
    }

    /**
     * 
     * @return is_primary
     */
    public String getIsPrimary() {
        return isPrimary;
    }

    /**
     * 
     * @param isPrimary
     */
    public void setIsPrimary(String isPrimary) {
        this.isPrimary = isPrimary == null ? null : isPrimary.trim();
    }

    /**
     * 
     * @return is_search
     */
    public String getIsSearch() {
        return isSearch;
    }

    /**
     * 
     * @param isSearch
     */
    public void setIsSearch(String isSearch) {
        this.isSearch = isSearch == null ? null : isSearch.trim();
    }

    /**
     * 
     * @return is_update
     */
    public String getIsUpdate() {
        return isUpdate;
    }

    /**
     * 
     * @param isUpdate
     */
    public void setIsUpdate(String isUpdate) {
        this.isUpdate = isUpdate == null ? null : isUpdate.trim();
    }

    /**
     * 
     * @return search_type
     */
    public String getSearchType() {
        return searchType;
    }

    /**
     * 
     * @param searchType
     */
    public void setSearchType(String searchType) {
        this.searchType = searchType == null ? null : searchType.trim();
    }

    /**
     * 
     * @return select_operation
     */
    public String getSelectOperation() {
        return selectOperation;
    }

    /**
     * 
     * @param selectOperation
     */
    public void setSelectOperation(String selectOperation) {
        this.selectOperation = selectOperation == null ? null : selectOperation.trim();
    }

    /**
     * 
     * @return field_type
     */
    public String getFieldType() {
        return fieldType;
    }

    /**
     * 
     * @param fieldType
     */
    public void setFieldType(String fieldType) {
        this.fieldType = fieldType == null ? null : fieldType.trim();
    }

    /**
     * 
     * @return display_order
     */
    public Integer getDisplayOrder() {
        return displayOrder;
    }

    /**
     * 
     * @param displayOrder
     */
    public void setDisplayOrder(Integer displayOrder) {
        this.displayOrder = displayOrder;
    }

    /**
     * 
     * @return field_width
     */
    public Integer getFieldWidth() {
        return fieldWidth;
    }

    /**
     * 
     * @param fieldWidth
     */
    public void setFieldWidth(Integer fieldWidth) {
        this.fieldWidth = fieldWidth;
    }

    /**
     * 
     * @return opt_content
     */
    public String getOptContent() {
        return optContent;
    }

    /**
     * 
     * @param optContent
     */
    public void setOptContent(String optContent) {
        this.optContent = optContent == null ? null : optContent.trim();
    }

    public JSONObject getOpt() {
        return JSONObject.parseObject(this.optContent);
    }
    
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((bizId == null) ? 0 : bizId.hashCode());
		result = prime * result + ((columnName == null) ? 0 : columnName.hashCode());
		result = prime * result + ((tableName == null) ? 0 : tableName.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		HtmlOperation other = (HtmlOperation) obj;
		if (bizId == null) {
			if (other.bizId != null)
				return false;
		} else if (!bizId.equals(other.bizId))
			return false;
		if (columnName == null) {
			if (other.columnName != null)
				return false;
		} else if (!columnName.equals(other.columnName))
			return false;
		if (tableName == null) {
			if (other.tableName != null)
				return false;
		} else if (!tableName.equals(other.tableName))
			return false;
		return true;
	}

}